package com.bjpowernode;


import com.bjpowernode.shangjia.TaoBao;
import com.bjpowernode.shangjia.WeiShang;

public class ShopMain {
    public static void main(String[] args) {
//        创建代理的商家taoBao对象
//        通过代理类，实现购买U盘，增加优惠券，红包
        TaoBao taoBao = new TaoBao();
        float price = taoBao.sell(1);
        System.out.println("通过淘宝的商家购买U盘单价："+price);
        WeiShang weiShang = new WeiShang();
        float price1= weiShang.sell(1);
        System.out.println("通过微商购买的价格："+price1);
    }
}
